#coding=utf-8
"""
Author:杭州多测师_付佳美
Time:2025/5/6 17:04
website:https://duoceshi.net
"""
'''用来封装读取文件的工具'''


from configparser import ConfigParser
from config.config import *

class Read_Ini(ConfigParser):
    def __init__(self,filename):
        super(Read_Ini, self).__init__()
        self.read(filename)
    def read_data_ini(self,section=None,option=None):
        value = self.get(section,option)
        return value
file = os.path.join(data_path,'data.ini')
read = Read_Ini(file)
url = read.read_data_ini('test_data','url')
print(url)




